home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Communications
/
Network
/
Anarchie-120
/
Example Scripts
/
Fetch Clipboard
< prev
next >
Wrap
Text File
|
1994-05-10
|
848b
|
20 lines
-- Change these to specify your prefered Umich & Info-Mac FTP sites.
-- Don't use the home sites, as they are already overloaded.
set umichaddr to "archie.au:/micros/mac/umich/"
set infomacaddr to "archie.au:/micros/mac/info-mac/"
set theurl to the clipboard
if (theurl contains " /info-mac") and (theurl contains ";") then
copy ((characters (offset of "/info-mac" in theurl) thru ¬
((offset of ";" in theurl) - 1) of theurl) as string) to theurl
end if
if (theurl does not contain ":") and (theurl starts with "/mac/") then
copy umichaddr & text from character 6 of theurl to end of theurl to theurl
end if
if (theurl does not contain ":") and (theurl starts with "/info-mac/") then
copy infomacaddr & text from character 11 of theurl to end of theurl to theurl
end if
tell application "Anarchie"
set theResult to fetch url theurl
end tell